package com.example.q.pocketmusic.config.constant;

/**
 * Created by 鹏君 on 2016/8/28.
 */
//静态数据,存放标记，url
public class Constant {
    public final static String APP_ID = "236163bbf4c3be6f2cc44de4405da6eb";

    //URL
    public final static String BASE_URL = "http://www.qupu123.com";
    public final static String USER_AGENT = "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 UBrowser/5.7.14377.702 Safari/537.36";
    public final static String RECOMMEND_BASE_URL = "http://www.qupu123.com";
    public final static String RECOMMEND_LIST_URL = "http://www.qupu123.com/space/work/6/";//桃李醉春风
    public static String SO_PU_SEARCH = "http://so.sooopu.com/pu/?q=";
    public static String SO_PU_BASE = "http://www.sooopu.com";


    //下载文件夹名
    public final static String FILE_NAME = "YuePuDownload";
    public final static String RECORD_FILE = "YuePuRecord";

    //返回标志
    public final static Integer SUCCESS = 1;
    public final static Integer FAIL = 0;


    //BmobInfo
    public static final int BMOB_INFO_RESET_PASSWORD = 1;//请求重置密码
    public static final int BMOB_INFO_LABA = 2;//小喇叭
    public static final int BMOB_INFO_HELP = 3;//帮助信息
    public static final int BMOB_INFO_RECOVERY = 4;//纠错


    //Intent Flag:本地/网络
    public final static int NET = 2;
    public final static int LOCAL = 3;

    //Intent Flag:曲谱来自
    public final static int FROM_TYPE = 4;
    public final static int FROM_SEARCH_NET = 5;
    public final static int FROM_COLLECTION = 6;
    public final static int FROM_RECOMMEND = 7;
    public final static int FROM_SHARE = 8;
    public final static int FROM_ASK = 9;
    public final static int FROM_LOCAL = 10;

    public static String getFromType(int type){
        switch (type){
            case FROM_TYPE:
                return "乐器";
            case FROM_SEARCH_NET:
                return "搜索";
            case FROM_COLLECTION:
                return "收藏";
            case FROM_RECOMMEND:
                return "推荐";
            case FROM_SHARE:
                return "分享";
            case FROM_ASK:
                return "求谱";
            case FROM_LOCAL:
                return "本地";
            default:
                return "未知";
        }
    }


    //Intent Flag:显示Menu
    public final static int MENU_DOWNLOAD_COLLECTION_AGREE_SHARE = 1001;//下载，点赞，收藏
    public final static int MENU_DOWNLOAD_COLLECTION_SHARE = 1002;//下载，收藏
    public final static int MENU_DOWNLOAD_SHARE = 1003;//下载
    public final static int SHOW_NO_MENU = 1004;//显示menu（之后改成显示录音功能menu）

    //请求
    public final static Integer REQUEST_LOGIN = 1;
    public static final int REQUEST_REGISTER = 2;

    //检验邮箱的正则表达式
    public final static String CHECK_EMAIL_REGEX = "^([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$";

    //初始头像
    public final static String COMMON_HEAD_IV_URL = "http://bmob-cdn-6553.b0.upaiyun.com/2017/05/04/af2010244002047a80bccc5e1d1a4e81.jpg";//默认头像地址


    //求谱类型,最好用Hap映射
    public static final int ji_ta_pu = 0;//吉他
    public static final int jian_pu = 1;//简谱
    public static final int gang_qin_pu = 2;//钢琴
    public static final int qi_ta_pu = 3;//其他


    //动态
    public static final int COMMUNITY_STATE_COLLECTION = 1;//收藏
    public static final int COMMUNITY_STATE_DOWNLOAD = 2;//下载
    public static final int COMMUNITY_STATE_AGREE = 3;//点赞


    //弹出支持开发的dialog
    public static final String SUPPORT_DATE="support_date";
    public static final String SUPPORT_TIME="support_time";


}
